package homework_2;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/12 14:44
 */

public class Computer {
    private Screen screen;
    private CPU cpu;

    public Computer() {
    }

    public Computer(Screen screen, CPU cpu) {
        this.screen = screen;
        this.cpu = cpu;
    }

    public void startup() {
        System.out.println("Computer is starting up...");
        System.out.println("Screen: " + screen);
        System.out.println("CPU: " + cpu);
    }

    public Screen getScreen() {
        return screen;
    }

    public void setScreen(Screen screen) {
        this.screen = screen;
    }

    public CPU getCpu() {
        return cpu;
    }

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }
}